﻿message(STATUS "Enter test folder")
set(MODULE_MAIN    test)

include_directories ("${CMAKE_SOURCE_DIR}/math")
include_directories ("${CMAKE_SOURCE_DIR}/utility")

LINK_DIRECTORIES("${PROJECT_BINARY_DIR}/lib")			# 添加lib目录为静态库目录

set(LIBS utility math)

add_executable(${MODULE_MAIN} main.cpp)					# add_executable用于生成执行文件的地方

target_link_libraries(test ${LIBS})						# 此举是将utility和math链接到main里面，然后在add_executable生成可执行文件test